package com.keeping.aiimagery.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.keeping.aiimagery.entity.Storage;
import com.keeping.aiimagery.mapper.StorageMapper;
import com.keeping.aiimagery.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage> implements StorageService   {
    @Autowired(required = false)
    StorageMapper storageMapper;

    @Override
    public int insert(String userAccount, String imagePath) {
        return storageMapper.insert(userAccount,imagePath);
    }

    @Override
    public List<Storage > selectAll(String userAccount) {
        return storageMapper.selectAll(userAccount);
    }
}
